	<?php
	    $server='localhost:3306';
	    $user='root';
	    $pwd='root';
	    $db='mydb';
		$conn=mysqli_connect($server,$user,$pwd,$db);
		if (mysqli_connect_errno($conn))
		{
			echo "Failed to connect to MySQL:".mysqli_connect_error();
		}
	?>
